package com.liu.my_blog_system.utils;

public interface Constants {

    interface User{
        String ADMIN = "admin";
        String USER = "user";
        String AVATAR = "https://imgs.sunofbeaches.com/group1/M00/00/04/rBsADV2YuTKABc4DAABfJHgYqP8031.png";
        String KEY_EMAIL_SEND_IP = "key_email_send_ip";
        String KEY_EMAIL_SEND_ADDRESS = "key_email_send_address";
        String KEY_EMAIL_CODE_CONTENT = "key_email_code_content";
        String KEY_CAPTCHA_CODE_CONTENT = "key_captcha_code_content";
        String KEY_TOKEN_ = "key_token_";
        String KEY_BLOG_TOKEN = "key_blog_token";
    }

    /**
     * 单位为秒
     */
    interface TimeValue{
        Long MIN = Long.valueOf(60);
        Long HOUR = MIN * 60;
        Long DAY = HOUR * 24;
        Long MONTH = DAY * 30;
        Long YEAR = MONTH * 12;
    }
}
